package com.hqyj.pojo;

import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import java.util.List;

@Data
@Table
public class Cart {//购物车
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;

    private Integer userId;//用户ID

    private Integer count;//产品总数

    private Integer total;//总价

    private Date createDate;//时间

    private List<CartItem> cartItemList;
}
